import Home from '@/views/home.vue'
import Vuex from '@/views/vuex.vue'
import { RouteRecordRaw } from 'vue-router'
import BasicLayout from './../layout/BasicLayout.vue'
const routeData= [
  {
    path: '/',
    redirect: '/home',
    meta: { title: "首页", icon: "home" },
    hidden: true,
    name: 'Home',

  },
  {
    path: "/",
    component: BasicLayout,
    children: [
      {
        path: "home",
        name: "首页",
        component: Home,
        meta: { title: "首页", icon: "home" }
      }
    ]
  },
  {
    path: '/vuex',
    name: 'Vuex',
    component: Vuex
  },
  {
    path: '/axios',
    name: 'Axios',
    component: () => import('@/views/axios.vue')
  },
] as RouteRecordRaw[]
export default routeData
